package org.hp.util;

import lombok.Data;

import java.util.List;

@Data
public class PageBean<T>{
    private int totalPage;  //总页数
    private int totalCount; //总条数
    private int page;       //当前页数
    private int limit;      //每页记录数
    private List<T> list;   //数据集

    public PageBean(int totalPage, int totalCount, int page, int limit, List<T> list) {
        this.totalPage = totalPage;
        this.totalCount = totalCount;
        this.page = page;
        this.limit = limit;
        this.list = list;
    }
}
